<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core">

    <p:panel header="SUPERVISIÓN DE PRACTICA" style="border: none;">
        <div align="center">
            <h:form style="border-style: solid; border-color: #069; font-weight: bold; width: 99%">
                <p><h:outputText value="REGISTRAR DOCENTE QUE LO SUPERVISARA" style="font-weight: bold; font-size: 18px; color:#069;"/></p>
                <br/>
                <h:panelGrid columns="2" cellspacing="5" id="panelGridIDddx">

                    <h:outputText value="Código Docente: "/>
                    <p:inputText value="#{practiceProcessBean.supervisionPractice.codeTeacher}"
                                 required="true" title="Código Docente"/>

                    <h:outputText value="Fecha de supervisión: "/>
                    <p:calendar locale="es" value="#{practiceProcessBean.supervisionPractice.date}"
                                required="true" title="Fecha"/>

                    <h:outputText value="Documento Formal :"/>
                    <p:inputMask value="#{practiceProcessBean.supervisionPractice.documentFormal}" size="40" required="true"
                                 mask="OFICIO Nº 999-9999 CPPP-FIIS-UNAS" label="Document" title="Documento Formal"/>

                    <h:outputText value="Detalle: "/>
                    <p:inputTextarea value="#{practiceProcessBean.supervisionPractice.detail}" autoResize="false"
                                     required="true" title="Detalle"/>

                    <p:separator/>
                    <p:separator/>

                    <p:commandButton value="Guargar" title="Si desea ver el reporte debe ir al detalle del alumno."
                                     action="#{practiceBean.initCollection()}" update=":panelCenter"
                                     onstart="PF('blockUI').block();" oncomplete="PF('blockUI').unblock();">
                        <f:actionListener binding="#{practiceProcessBean.saveSupervisionPractice()}" />
                        <f:setPropertyActionListener value="./content/practice.xhtml" target="#{indexLoginBean.navigation}"/>
                    </p:commandButton>
                    
                </h:panelGrid>
            </h:form>

        </div>
    </p:panel>
</ui:composition>
